package com.month.product.service.impl;

import com.month.product.bean.Product;
import com.month.product.service.ProductService;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;

@Service
public class ProductServiceImpl implements ProductService {
    @Override
    public Product getProduct(Integer id) {
        Product product = new Product();
        product.setId(Long.valueOf(id));
        product.setName("iphone");
        product.setPrice(new BigDecimal(8888));
        product.setPurchaseNum(1);
        return product;
    }
}
